const mongoose = require('mongoose')
// import mongoose from 'mongoose'
const Schema = mongoose.Schema
const Shop = new Schema({
  city: {
    type: String
  },
  name: {
    type: String
  },
  tel: {
    type: String
  },
  address: {
    type: String
  },
  tag: {
    type: String
  },
  type: {
    type: String
  },
  photos: {
    type: Array
  },
  cost: {
    type: String
  },
  rating: {
    type: Number
  }
})

// export default mongoose.model('Poi', Poi)
module.exports = mongoose.model('Shop', Shop)
